[staticanalysis]: Actually check errors on splice() of objects
authorColin Walters <walters@verbum.org>
Sat, 21 Jun 2014 21:30:11 +0000 (17:30 -0400)
committerColin Walters <walters@verbum.org>
Sat, 21 Jun 2014 22:08:49 +0000 (18:08 -0400)
commit54079982d8667f3f908a2f03a11c1c8ee0619839
tree0856055feff504b54e95a2e36cb3f239c9d8087a
parent2dc0cea50310a6707d45351cfdf9a334c2bc85c1
[staticanalysis]: Actually check errors on splice() of objects

We were using unsigned size when we should have been using signed,
this means we basically weren't checking for errors on write...ouch.

Luckily if we e.g. hit ENOSPC during a pull, the checksums wouldn't
match and we'd return an error anyways.  However when writing an
object, we'd end up silently ignoring it =/

https://bugzilla.gnome.org/show_bug.cgi?id=732020
src/libostree/ostree-repo-commit.c